package dao;

import domain.Teacher;
import exception.BysjException;
import util.Condition;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherDaoInterface {
    public Collection<Teacher> findAll(Connection connection, List<Condition> conditionList) throws SQLException, BysjException;
    public boolean add(Teacher teacher) throws SQLException, BysjException;
    public Teacher find(int id)throws SQLException;
    public boolean delete(int id) throws SQLException;
    public boolean update(Connection connection,Teacher teacher) throws SQLException, BysjException;
}
